
#include "hal_drv.h"

hal_hw_gpio_t gpio_group[] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG, GPIOH, GPIOI};
hal_hw_pwm_t pwm_group[] = {TIMER0, TIMER1, TIMER2, TIMER3, TIMER4, TIMER5, TIMER6, TIMER7,
                            TIMER8, TIMER9, TIMER10, TIMER11, TIMER12, TIMER13};

void hal_delay_us(uint32_t us)
{
    volatile uint32_t i;
    while(us--)
    {
        i = DELAY_US_TICK;
        while(i--);
    }
}

void hal_delay_ms(uint32_t ms)
{
    hal_delay_us(1000*ms);
}
